package com.foreveross.crawl.application.mq;

import java.util.List;

import com.foreveross.crawl.vo.Message;

/**
 * MQ消息操作
 * @author luofangyi
 *
 */
public interface IMessageOperateForMQ {

	/**
	 * @Description:发送消息 —— 生产消息
	 * @param message
	 * @throws Exception 
	 * @return void  
	 *
	 */
	public void sendMessages(List<Message> messageList) throws Exception;
	
	/**
	 * @Description: 发送单条信息
	 * @param message
	 * @throws Exception 
	 * @return void  
	 *
	 */
	public void sendMessage(Message message) throws Exception;
	
	/**
	 * @Description: 发送消息
	 * @param message
	 * @throws Exception 
	 * @return void  
	 *
	 */
	public void sendMessage(String message) throws Exception;
}
